import request from '@/utils/request'

export function getGoodsSpecTemplatesList (params:any) {
    return request({
        url: 'store.goodsSpecTemplates/list',
        method: 'GET',
        params
    })
}
export function getGoodsSpecTemplatesSelect() {
    return request({
        url: 'store.goodsSpecTemplates/select',
        method: 'GET'
    })
}

export function createGoodsSpecTemplates (data:any) {
    return request({
        url: 'store.goodsSpecTemplates/create',
        method: 'POST',
        data
    })
}

export function updateGoodsSpecTemplates (data:any) {
    return request({
        url: `store.goodsSpecTemplates/update`,
        method: 'PUT',
        data
    })
}
export function delGoodsSpecTemplates (data:{id:number|string}) {
    return request({
        url: `store.goodsSpecTemplates/delete`,
        method: 'DELETE',
        data
    })
}

export function getGoodsSpecTemplatesDetail (params:{id:number|string}) {
    return request({
        url: `store.goodsSpecTemplates/detail`,
        method: 'GET',
        params
    })
}
